import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '编码规则ID',
    align: "center",
    dataIndex: 'billClassRuleId'
  },
  {
    title: '排序',
    align: "center",
    dataIndex: 'sort'
  },
  {
    title: '流水号长度',
    align: "center",
    dataIndex: 'lengthFlow'
  },
  {
    title: '流水号',
    align: "center",
    dataIndex: 'maxFlow'
  },
  {
    title: '补位符',
    align: "center",
    dataIndex: 'codeCover'
  },
  {
    title: '日期格式',
    align: "center",
    dataIndex: 'dateFormat'
  },
  {
    title: '常量',
    align: "center",
    dataIndex: 'constantChar'
  },
  {
    title: '当前日期',
    align: "center",
    dataIndex: 'maxDate'
  },
];

// 高级查询数据
export const superQuerySchema = {
  billClassRuleId: {title: '编码规则ID',order: 0,view: 'text', type: 'string',},
  sort: {title: '排序',order: 1,view: 'number', type: 'number',},
  lengthFlow: {title: '流水号长度',order: 2,view: 'number', type: 'number',},
  maxFlow: {title: '流水号',order: 3,view: 'number', type: 'number',},
  codeCover: {title: '补位符',order: 4,view: 'text', type: 'string',},
  dateFormat: {title: '日期格式',order: 5,view: 'number', type: 'number',},
  constantChar: {title: '常量',order: 6,view: 'text', type: 'string',},
  maxDate: {title: '当前日期',order: 7,view: 'text', type: 'string',},
};
